package cn.xt.service.house;

import cn.xt.bean.City;
import cn.xt.dao.house.CityDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @date 2018/11/21-15:25
 */
@Service("cityService")
public class CityServiceImp implements CityService {
    @Autowired
    private CityDao cityDao;

    @Override
    public List<City> findCity(String cityName) {
        return cityDao.findCity(cityName);
    }

    @Override
    public City findCityId(int codeid) {
        return cityDao.findCityId(codeid);
    }
}
